{extend name="common/base" }

{block name="content"}
<div class="am-g">
	<div class="am-u-sm-12">
		<form class="am-form ajax-form" method="post" action="{:module_url('add')}">
		
			{$widget->form('text', ['title' => '文章标题', 'name' => 'article_title', 'value' => ''])}
			
			{$widget->form('checkbox', ['title' => '文章分类', 'name' => 'article_cate[]', 'value' => '', 'list' => $cate_list])}
			
			{$widget->form('text', ['title' => '文章作者', 'name' => 'article_author', 'value' => ''])}
			
			{$widget->form('tag', ['title' => '文章标签', 'name' => 'article_tags', 'value' => ''])}
			
			{$widget->form('textarea', ['title' => '文章简介', 'name' => 'article_info', 'value' => ''])}
			
			{$widget->form('image', ['title' => '文章封面', 'name' => 'article_cover', 'value' => '', 'width' => 600])}
			
			{$widget->form('select', ['title' => '文章状态', 'name' => 'article_status', 'value' => '', 'list' => $status_list])}
			
			{$widget->form('editor', ['title' => '文章内容', 'name' => 'article_content', 'value' => ''])}
			
			{$widget->form('textarea', ['title' => '原文链接', 'name' => 'article_origin', 'value' => ''])}
			
			{$widget->form('text', ['title' => '文章排序', 'name' => 'article_sort', 'value' => 0])}
			
			{$widget->form('date', ['title' => '发布时间', 'name' => 'create_time', 'value' => date('Y-m-d')])}
			
			{$widget->form('submit', ['title' => '用户操作'])}
			
		</form>
	</div>
</div>
{/block}